Dynomotion

Group: DynoMotion Message: 6260 From: Troy Stevens Date: 12/12/2012
Subject: 4th and 5th home switch.
Hello,

I am building a small 5 axis mill, using kflop and Mach3.  I have the first 3 limit switches working great.  What do I need to do to get mach 3 to send the right command for the 4th and 5th homing routine.

I started my code using the Mach3 homing example.    It uses flag 1,2 and 4 for the axis.   Why is the z axis flag 4 and not 3?  

 What flags should I use for the 4th and 5th?  Right now I am just using open loop stepper mode, so I don't think I need to do anything to the home buttons I created the same way I created the x,y,z home buttons, or do I need to do something different.  

I tried 5 and 6 as the flag numbers in my homing code but no luck.


Thanks
Troy
Group: DynoMotion Message: 6263 From: Tom Kerekes Date: 12/12/2012
Subject: Re: 4th and 5th home switch.
Hi Troy,

Mach3 sends the "flags" value as a binary bit pattern (2 power of n).  I think the original idea was to be able to home multiple axes at the same time.  For example to home x,y,z together a value of 7 (1+2+4) would be used.  In actuality Mach3 doesn't ever seem to do this.  The 4th and 5th axes would be values 8 and 16.

The HomeMach3.c example prints the flags variable to the Console Screen so you can use that to verify what Mach3 is actually sending.

Regards
TK


Group: DynoMotion Message: 6270 From: Troy Stevens Date: 12/12/2012
Subject: Re: 4th and 5th home switch.
Ok, I discovered the console and figured out the flags just as I got your response.  

Now I have a new problem, A and B homing worked great the first time.  Now they don't home anymore, neither do the other limit switches, and nothing appears in the console anymore.   I can jog the axis in mach3, I just can't home anymore, and the console isn't working.   I have restarted everything with the same results.

Not sure what I did.




On Wed, Dec 12, 2012 at 12:22 PM, Tom Kerekes <tk@...> wrote:
 

Hi Troy,

Mach3 sends the "flags" value as a binary bit pattern (2 power of n).  I think the original idea was to be able to home multiple axes at the same time.  For example to home x,y,z together a value of 7 (1+2+4) would be used.  In actuality Mach3 doesn't ever seem to do this.  The 4th and 5th axes would be values 8 and 16.

The HomeMach3.c example prints the flags variable to the Console Screen so you can use that to verify what Mach3 is actually sending.

Regards
TK


Group: DynoMotion Message: 6272 From: Tom Kerekes Date: 12/12/2012
Subject: Re: 4th and 5th home switch.
Hi Troy,

We would need more info on what you are doing.

Maybe you don't have a Home file specified in the Mach3 | Config Plugins |Dynomotion Screen?

Regards
TK

Group: DynoMotion Message: 6273 From: Troy Stevens Date: 12/12/2012
Subject: Re: 4th and 5th home switch.
I was wrong about the console, it is working, it is just my homing code doesn't seem to be finishing or gets stuck, so it doesn't show up in the console after the first press.    Somehow I was able to reset everything once and the homing worked again exactly one time.

Is there an easy way to kill all the homing tread in case something in my home routine is not working?   I have tried re-loading and restarting everything I can not get everything to reset so I can debug my homing code.  I am not sure what I did but I did get it to reset the one time.



On Wed, Dec 12, 2012 at 4:05 PM, Tom Kerekes <tk@...> wrote:
 

Hi Troy,

We would need more info on what you are doing.

Maybe you don't have a Home file specified in the Mach3 | Config Plugins |Dynomotion Screen?

Regards
TK

Group: DynoMotion Message: 6275 From: Tom Kerekes Date: 12/12/2012
Subject: Re: 4th and 5th home switch.
Hi Troy,

For Debugging you can run KMotion.exe concurrently with Mach3.  The C Programs Screen will display a green bar on each Thread that is running.  To Kill a running Thread first select it and then push Halt.

Regards
TK